package edu.cqcet.gitTest.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@CrossOrigin("*")
@RequestMapping("/guo")
public class HelloGuoController {
    @RequestMapping("/hello")
    public Map<String,Object> hello(@RequestParam("text")String text){
        Map map = new HashMap<String,Object>();
        map.put("satus",200);
        map.put("message","尊敬的老板您好， 我是你卑微的小马仔: " + text);
        return map;
    }
}

